<style type="text/css">
#fancybox-content { border-width : 0px; }
</style>

<div class="current-theme-section">
    <?php echo CHtml::hiddenField('theme-name',$theme['name']); ?>
    <p class="theme-name"><?php echo $theme['name']; ?></p>
    <div class="actions">
        <a href="#" class="activate-theme">Activate</a>   
    </div>
</div>

<script type="text/javascript">
$('.actions a.activate-theme').click(function(){
    $.get(
        baseUrl + '/index.php?r=Admin/admin/theme/activate',
        {
            'id': $('#theme-name').val()
        },
        function (result){
            if (result != '')
                alert(result);
            else
                parent.$.fancybox.close();
        }
    );    
});
</script>